package com.wzy.pcwzy.logdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    private static final String Message = "Hello";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button bt = (Button)findViewById(R.id.showBtn);
        bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.v(MainActivity.Message,"This is Verbose");
                Log.d(MainActivity.Message, "This is Debug.");
                Log.i(MainActivity.Message, "This is Information");
                Log.w(MainActivity.Message, "This is Warnning.");
                Log.e(MainActivity.Message, "This is Error.");
            }
        });
    }
}
